package com.ruoyi.ahs.util;

import com.alibaba.fastjson2.JSONObject;
import com.ruoyi.system.domain.ahs.AhsToken;
import com.ruoyi.system.domain.ahs.ProductSearch;

/**
 * TODO to describe FetchAddressTest
 *
 * @author 辛凤文
 * @since 1.0
 */
public class FetchAddressTest {

    public static void main(String[] args) {
        //初始化token
        AhsToken token = new AhsToken();
        token.setAhsToken("a49122d4122b415ba5c5ab5834eaec24");
        //AhsAuthCache.update(token);
        ProductSearch search = new ProductSearch();
        search.setGaeaCategoryId(655L);
        search.setGaeaProductId(30496L);
        search.setSortValue("sort_composite");
        search.setPageIndex(0L);
        search.setPageSize(20L);
        search.setCityId(114L);
//        SearchResult searchResult = AhsUtils.search(search);
        System.out.println(JSONObject.toJSONString(search));
    }
}
